<script>
	$(document).ready(function() {
		$("#btn_airlines_filter_mode").click(function() {
			if($('#airlinesFilterMode').val()==='like' || $('#airlinesFilterMode').val()===''){
				$('#btn_airlines_filter_mode').removeClass('fa-thumbs-o-up').addClass('fa-thumbs-o-down');
				$('#possitiveAndNegativeAirline').attr( "title", "Negative Airline(s)" );
				$('#airlinesFilterMode').val("unlike");
				$('#txtAirlinesFilterMode').val("unlike");
			}
			else{
				$('#btn_airlines_filter_mode').removeClass('fa-thumbs-o-down').addClass('fa-thumbs-o-up');
				$('#possitiveAndNegativeAirline').attr( "title", "Positive Airline(s)" );
				$('#airlinesFilterMode').val("like");
				$('#txtAirlinesFilterMode').val("like");
			}
		});

		var value=$('#airlinesFilterMode').val();
		console.log("jsswitch_airline: filter mode: "+value);
		if(value==='like' || value===''){
			$('#btn_airlines_filter_mode').removeClass('fa-thumbs-o-down').addClass('fa-thumbs-o-up');
			console.log("like");
		}
		else{
			$('#btn_airlines_filter_mode').removeClass('fa-thumbs-o-up').addClass('fa-thumbs-o-down');
		}
	});
</script>